package com.example.oj.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName competitionResult
 */
@TableName(value ="competitionResult")
@Data
public class CompetitionResult implements Serializable {
    /**
     * 
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 用户Id
     */
    private Long userId;

    /**
     * 竞赛Id
     */
    private Long competitionId;

    /**
     * 分数
     */
    private Integer score;

    /**
     * 时长
     */
    private LocalDateTime length;

    /**
     * 排名
     */
    private Integer ranking;

    /**
     * 
     */
    private Integer deleted;

    /**
     * 
     */
    private Date createTime;

    /**
     * 
     */
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}